// 先引入经过自定义全局封装的 axios
import request from '/@/utils/request';
/**
 * @method upsert  //表单的新增修改
 * @method list //表单列表
 */

export function useFormDesignerApi() { 
  return {
    upsert(data: object) {
      return request({
				url: '/form/template/upsert',
        method: 'post',
        data:data
			});
    },
    list() {
      return request({
				url: '/form/template/list',
        method: 'get'
      
			});
    },

  }
}